package com.jiaozi;

import lombok.SneakyThrows;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.jmx.support.RegistrationPolicy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication(scanBasePackages = {"com.jiaozi"})
@MapperScan(value={"com.jiaozi.system.mapper"})
@EnableAsync
@EnableScheduling
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
public class PlatformApplication {
    @SneakyThrows
    public static void main(String[] args) {
        SpringApplication.run(PlatformApplication.class, args);
    }
}
